<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Invia richiesta di aiuto</title>
</head>
<body>
<form name="bacheca" method="post" action="BachecaServlet">
   <input type="hidden" name="username" value="<%=request.getParameter("richiedente") %>">
   <input type="hidden" name="nome" value="<%=request.getParameter("nome") %>">
   <input type="hidden" name="cognome" value="<%=request.getParameter("cognome") %>">
</form>
<form name="notifiche" method="post" action="NotificheServlet">
   <input type="hidden" name="username" value="<%=request.getParameter("richiedente") %>">
   <input type="hidden" name="nome" value="<%=request.getParameter("nome") %>">
   <input type="hidden" name="cognome" value="<%=request.getParameter("cognome") %>">
</form>
 <form name="ricerca" method="post" action="Ricerca.jsp">
   <input type="hidden" name="id" value="<%=request.getParameter("richiedente") %>">
   <input type="hidden" name="nome" value="<%=request.getParameter("nome") %>">
   <input type="hidden" name="cognome" value="<%=request.getParameter("cognome") %>">
</form>
<div id="menu-wrapper">
		<div id="menu">
			<ul>
				<li><a href="javascript:document.bacheca.submit()">Bacheca</a></li>
				<li><a href="javascript:document.notifiche.submit()">Notifiche</a></li>
				<li><a href="MostraMioProfiloServlet?id=<%= request.getParameter("richiedente") %>"><%= request.getParameter("nome") %><%= request.getParameter("cognome") %></a></li>
				<li><a href="javascript:document.ricerca.submit()">Ricerca</a></li>
				<li><a href="LogoutServlet?username=<%= request.getParameter("richiedente")%>&user=utente">Logout</a></li>
			</ul>
		</div>
		<!-- end #menu -->
</div>
<div id="page">
		<div id="page-bgtop">
			<div id="page-bgbtm">
				<div id="content">
					<div class="post">
						<h2 class="title">Richiesta Aiuto</h2>
						<div class="entry"> 
							<form method="post" action="InviaRicAiutoServlet">
							   <p>Destinatario <%= request.getParameter("destinatario") %></p>
							   <p>Oggetto <input type="text" name="oggetto" size="30"></p>
							   <p>Descrizione:</p>
							   <textarea name="descrizione" rows="5" cols="50">Inserire una descrizione</textarea>  
							   <input type="hidden" name="richiedente" value="<%= request.getParameter("richiedente") %>">
							   <input type="hidden" name="destinatario" value="<%= request.getParameter("destinatario") %>">
							   <input type="hidden" name="nome" value="<%= request.getParameter("nome") %>">
							   <input type="hidden" name="cognome" value="<%= request.getParameter("cognome") %>">
							   <input type="hidden" name="amico" value="<%= request.getParameter("amico") %>">
							   <p><input type="submit" value="Invia richiesta"></p>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>